package org.feng.entity;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.relational.core.mapping.Column;
import org.springframework.data.relational.core.mapping.Table;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 学生类：从数据库查到数据，保存到这里
 *
 * @version v1.0
 * @author: fengjinsong
 * @date: 2022年06月11日 10时56分
 */
@Table("student")
@Data
public class Student implements Serializable {
    private static final long serialVersionUID = 6893925282425666931L;
    @Id
    @Column("id")
    private Integer id;
    @Column("name")
    private String name;
    @Column("age")
    private Integer age;
    @Column("weight")
    private Double weight;
    @Column("height")
    private Double height;
    @Column("modified")
    private LocalDateTime modified;
}
